package com.cjy.service;

import com.cjy.pojo.Admin;
import com.cjy.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface adminService {

    //根据id查询,返回一个Admin
    Admin queryAdminById(int id);


    //查询全部Book,返回list集合
    List<Admin> adminAll();

    Admin queryAdminNameAndPwd(String AdminName,String AdminPwd);

    //查询该用户是否注册
    List<Admin> adminByName(String Name);
    //增加一个用户
    int addAdmin(Admin admin);


}
